﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Administrator.aspx.cs" Inherits="Web_cuiki.index" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" runat="server">
    <div class="clear">
    </div>
    <!-- start content-outer ........................................................................................................................START -->
    <div id="content-outer">
        <!-- start content -->
        <div id="content">
            <!--  start page-heading -->
            <div id="page-heading">
                <h1>
                    Toàn bộ sản phẩm</h1>
            </div>
            <!-- end page-heading -->
            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
                <tr>
                    <th rowspan="3" class="sized">
                        <img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
                    </th>
                    <th class="topleft">
                    </th>
                    <td id="tbl-border-top">
                        &nbsp;
                    </td>
                    <th class="topright">
                    </th>
                    <th rowspan="3" class="sized">
                        <img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" />
                    </th>
                </tr>
                <tr>
                    <td id="tbl-border-left">
                    </td>
                    <td>
                        <!--  start content-table-inner ...................................................................... START -->
                        <div id="content-table-inner">
                            <!--  start table-content  -->
                            <div id="table-content">
                                <!--  start product-table ..................................................................................... -->
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                BackColor="#CCCCCC" BorderColor="#999999" BorderWidth="3px" 
                CellPadding="4" DataSourceID="LinqDataSource1" ForeColor="Black" AllowPaging="True" 
                                    BorderStyle="Solid" CellSpacing="5" 
                                    DataKeyNames="MaSanPham">
                <Columns>
                    <asp:BoundField DataField="MaSanPham" HeaderText="Mã" ReadOnly="True" 
                        SortExpression="MaSanPham" />
                    <asp:BoundField DataField="TenSanPham" HeaderText="Tên sản phẫm" 
                        SortExpression="TenSanPham" />
                    <asp:BoundField DataField="HinhAnh" HeaderText="Hình ảnh" 
                        SortExpression="HinhAnh" />
                    <asp:BoundField DataField="MoTa" HeaderText="Mô tả" 
                        SortExpression="MoTa" />
                    <asp:BoundField DataField="NgayPhatHanh" HeaderText="Ngày phát hành" 
                        ReadOnly="True" SortExpression="NgayPhatHanh" />
                    <asp:BoundField DataField="SoLuongTon" HeaderText="Số lượng tồn" 
                        SortExpression="SoLuongTon" />
                    <asp:BoundField DataField="Gia" HeaderText="Giá" 
                        SortExpression="Gia" />
                    <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/cancel-icon.jpg" 
                        DeleteImageUrl="~/images/delete-icon.jpg" 
                        EditImageUrl="~/images/edit-icon.gif" ShowEditButton="True" 
                        UpdateImageUrl="~/images/update-icon.png" />
                </Columns>
                                    <FooterStyle BackColor="#CCCCCC" />
                                    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                                    <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
                                    <RowStyle BackColor="White" HorizontalAlign="Center" VerticalAlign="Middle" />
                                    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                                    <SortedAscendingCellStyle BackColor="#F1F1F1" />
                                    <SortedAscendingHeaderStyle BackColor="#808080" />
                                    <SortedDescendingCellStyle BackColor="#CAC9C9" />
                                    <SortedDescendingHeaderStyle BackColor="#383838" />
            </asp:GridView>
            
            <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
                ContextTypeName="Web_cuiki.NhaXuatBanDataContext" EntityTypeName="" 
              
                 EnableDelete="True" EnableUpdate="True" EnableInsert="true"
                 
                TableName="SAN_PHAMs" >
            </asp:LinqDataSource>
                            </div>
                            <!--  end content-table  -->
                            <!--  start actions-box ............................................... -->
                            <!-- end actions-box........... -->
                            <!--  start paging..................................................... -->
                            <!--  end paging................ -->
                            <div class="clear">
                            </div>
                        </div>
                        <!--  end content-table-inner ............................................END  -->
                    </td>
                    <td id="tbl-border-right">
                    </td>
                </tr>
                <tr>
                    <th class="sized bottomleft">
                    </th>
                    <td id="tbl-border-bottom">
                        &nbsp;
                    </td>
                    <th class="sized bottomright">
                    </th>
                </tr>
            </table>


        </div>
        <!--  end content -->

    </div>
    <!--  end content-outer........................................................END -->
</asp:Content>
